package com.dstz.demo.core.manager.impl;

import com.dstz.base.manager.impl.BaseManager;
import com.dstz.demo.core.dao.CollectionlistDao;
import com.dstz.demo.core.manager.CollectionlistManager;
import com.dstz.demo.core.model.Collectionlist;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("CollectionlistManager")
public class CollectionlistManagerImpl extends BaseManager<String, Collectionlist> implements CollectionlistManager {
    @Resource
    CollectionlistDao collectionlistDao;

    @Override
    public void save(Collectionlist collectionlist) {
        collectionlistDao.save(collectionlist);
    }

    @Override
    public List<Collectionlist> findById(String id) {
        return collectionlistDao.findById(id);
    }
}
